package com.chenfan.mcn.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenfan.common.extension.mybatisplus.enhanced.EnhancedBaseMapper;
import com.chenfan.mcn.model.McnPage;
import com.chenfan.mcn.model.StarArchivingCodeRule;
import com.chenfan.mcn.model.vo.StarArchivingCodeRuleVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 特殊红人归档编码规则 Mapper 接口
 * </p>
 *
 * @author wulg
 * @since 2021-12-17
 */
public interface StarArchivingCodeRuleMapper extends EnhancedBaseMapper<StarArchivingCodeRule> {

    /**
     * 分页查询特殊红人归档编码规则
     * @param mcnPage
     * @param tenantId
     * @return
     */
    Page<StarArchivingCodeRuleVO> page(McnPage<StarArchivingCodeRule> mcnPage , @Param("tenantId") Long tenantId);

    /**
     * 根据ID查看特殊红人归档编码规则详情
     * @param id
     * @return
     */
    StarArchivingCodeRuleVO detail(Long id);
}
